<%@ page language="java" import="java.util.*,com.gdpu.project.vo.News" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	News news =(News)request.getAttribute("news");
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新闻发布</title>
<link rel="stylesheet" rev="stylesheet" href="<%=basePath%>admin/css/style.css" type="text/css" media="all" />
<base href="<%=basePath%>">

<script charset="utf-8" src="<%=basePath%>admin/files/newsManager/kindeditor.js"></script>
		<script>
			KE.show({
				id : 'content2',
				resizeMode : 1,
				allowPreviewEmoticons : false,
				allowUpload : false,
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'link']
			});
		</script>

<script language="JavaScript" type="text/javascript">
function tishi()
{
  var a=confirm('数据库中保存有该人员基本信息，您可以修改或保留该信息。');
  if(a!=true)return false;
  window.open("冲突页.htm","","depended=0,alwaysRaised=1,width=800,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}

function check()
{
document.getElementById("aa").style.display="";
}

</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body class="ContentBody">
 <form action="<%=basePath%>newsUpdateAction.action?newsId=<%=news.getNewsId() %>" method="post" enctype="multipart/form-data" name="form" target="mainFrame">
  <tr>
    <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
    			<tr>
					<td height="30">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="62" background="<%=basePath%>admin/images/nav04.gif">

									<table width="98%" border="0" align="center" cellpadding="0"
										cellspacing="0">
										<tr>
											<td width="21">
											</td>
											<td width="550">
											</td>
											<td width="132" align="left">
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
     <tr>
      <TD width="100%">
				<fieldset style="height:100%;">
				<legend>新闻修改</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <tr>
					    <td nowrap align="right" width="11%">新闻标题:</td>
					    <td width="27%"><input name="newsTitle" class="text"  value="<%=news.getNewsTitle()%>" style="width:400px"/></td>
				        	
					    <td align="right" width="25%">&nbsp;</td>
					    <td width="37%">&nbsp;</td>
					    </tr>
					    
					    
					    
					  <tr>
					    <td width="11%" align="right" nowrap>新闻类别:</td>
					    <td colspan="3">
					      <select name="newsType" style="width:150px">
							<option selected="selected"><%=news.getNewsType()%></option>
							<option>校级新闻</option>
							<option>院级新闻</option>
						</select></td></tr>
					  
					  <tr>
					    <td  width="11%" nowrap align="right">新闻内容:</td>
					    <td colspan="3">
					    <textarea  id="content2" name="newsInfo" cols="90" rows="20"><%=news.getNewsInfo()%></textarea>
					   
					   
					    </tr>
					  </table>
			  <br />
				</fieldset>
				</TD>
  </tr>
  		<TR>
			<TD colspan="2" align="center" height="50px">
			<input  type="submit" value="更新" class="button"/ >
            <input  type="reset" value="重置" class="button"/ >
			<input type="button" name="Submit2" value="返回"  class="button" onclick="window.history.go(-1);"/>
			</TD>
		</TR>

</table>
</form>
<div align="center">
<h3 style="color:#FF0000">${message}</h3>
</div>
</body>
</html>
